package lp.xian.materials.domain;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.TreeEntity;

/**
 * 仓库分类对象 lp_warehouse_dept
 *
 * @author ruoyi
 * @date 2023-08-10
 */
@Data
public class WarehouseDept extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 仓库id */
    private Integer warehouseDeptId;

    /** 父id */
    @Excel(name = "父id")
    private Integer warehouseDeptParentId;

    /** 组级列表 */
    @Excel(name = "组级列表")
    private String warehouseDeptAncestors;

    /** 仓库名称 */
    @Excel(name = "仓库名称")
    private String warehouseDeptName;

    /** 显示顺序 */
    @Excel(name = "显示顺序")
    private Integer warehouseDeptOrderNum;

    /** 负责人 */
    @Excel(name = "负责人")
    private String warehouseDeptLeader;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String warehouseDeptPhone;

    /** 邮箱 */
    @Excel(name = "邮箱")
    private String warehouseDeptEmail;

    /** 仓库状态 */
    @Excel(name = "仓库状态")
    private Integer warehouseDeptStatus;



    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("warehouseDeptId", getWarehouseDeptId())
                .append("warehouseDeptParentId", getWarehouseDeptParentId())
                .append("warehouseDeptAncestors", getWarehouseDeptAncestors())
                .append("warehouseDeptName", getWarehouseDeptName())
                .append("warehouseDeptOrderNum", getWarehouseDeptOrderNum())
                .append("warehouseDeptLeader", getWarehouseDeptLeader())
                .append("warehouseDeptPhone", getWarehouseDeptPhone())
                .append("warehouseDeptEmail", getWarehouseDeptEmail())
                .append("warehouseDeptStatus", getWarehouseDeptStatus())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
